/*
Simple progam implementing part of the PHUKD library (http://www.irongeek.com/i.php?page=security/programmable-hid-usb-keystroke-dongle).
Designed to test a possible control mechanism without relying on hardware modification of the teensy itself.
Uses the IsCapsOn() function as a trigger for repeated mouse clicks for as long as caps lock is on.
*/
#include <phukdlib.h>

void setup() { } // no setup needed
void loop() {
  while(IsCapsOn())
  {
    Mouse.click();
    //delay(200);  //A delay could be added to slow the clicking, without a delay ~500 clicks? are made per second
  }
}
